<%@ include file="/taglibs.jsp"%>
<s:set name="lstAllMenu" value="lstAllMenu" scope="request"/>

<title><fmt:message key="menu.menus.mainmenu.title"/></title>
<div align="right">
<button onclick="location.href='edit_menu.html'" class="button" name="actAddMainMenu">
		<fmt:message key="button.add.title"></fmt:message>
		<img src="${ctx}/images/btn_add.png" align="left" height="20" width="20">
</button>
</div>
<br>
<display:table name="lstAllMenu" class="table" requestURI="" id="lstAllMenu" export="false">
		    <display:column titleKey="menu.name" href="edit_menu.html" media="html"  paramId="id" paramProperty="id" escapeXml="false">
		    	<c:if test="${lstAllMenu.isFather}">
		    		<b>${lstAllMenu.name}</b>
		    	</c:if>
		    	<c:if test="${!lstAllMenu.isFather}">
		    		---- ${lstAllMenu.name}
		    	</c:if>
		    </display:column>
		    
		    <display:column property="url"  titleKey="menu.url" escapeXml="true"/>
		    <display:column>
				<a href="menu_up.html?id=${lstAllMenu.id}" ><img src="${ctx}/images/btn_up.png" height="20" width="20"></a>
			    <a href="menu_down.html?id=${lstAllMenu.id}" ><img src="${ctx}/images/btn_down.png" height="20" width="20"></a>
			</display:column>
</display:table>

	<button onclick="location.href='edit_menu.html'" class="button" name="actAddMainMenu">
		<fmt:message key="button.add.title"></fmt:message>
		<img src="${ctx}/images/btn_add.png" align="left" height="20" width="20">
	</button>
